import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import * as API from '@/api/index'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI,{
  size:'small',
  zIndex:300
})
import CKEditor from '@ckeditor/ckeditor5-vue2';
import {MyPlugin} from './utils/plugin'
import echarts from 'echarts'
//时间
Vue.use( CKEditor );
Vue.config.productionTip = false
Vue.config.devtools = true
Vue.use(MyPlugin)
Vue.prototype.$echarts = echarts
window.MyVue=new Vue({
  router,
  store,
  render: h => h(App),
  beforeCreate() {
    Vue.prototype.$API =API
    Vue.prototype.$bus = this //安装全局事件总线
  },
}).$mount('#app')
